import { createRequest } from '/@/api/service';
const module = 'ib/spareparts/v1/WarehouseManageApi';

/**
 * @function 库存记录新增(同：备件申请（APP）)
 * @param data
 * @param header
 * @returns {Promise}
 */
function QUERY_WAREHOUSE_LIST(
  data: WarehouseManageApi.QueryWarehouseListReq,
  header: object = {},
): Promise<WarehouseManageApi.QueryWarehouseListResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}/queryWarehouseList`,
    data,
    header,
    'POST',
  );
}

export { QUERY_WAREHOUSE_LIST };
